package colakao;

/**
 *
 * @author juwking
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        // simple logic test application
        int players_amount = 2, jokers = 3, taliaI = 1;
        Player []players = new Player[2];
        players[0] = new Player();
        players[1] = new Player();
        Dealer d = new Dealer(players_amount, jokers, taliaI);
        d.Begin();
        System.out.println("Deck: ");
        for(int i=0; i<d.DeckSize(); i++)
        {
            System.out.println("Rank: "+d.getCard(i).rank+
                    " Punishment: "+d.getCard(i).punish+
                    " Card's reverse: "+d.getCard(i).pathAwers);
        }
        for(int i=0; i<players_amount; i++)
            d.GiveOutDeck(players[i], 2, i+1, 6);
        System.out.println("Active card: "+
                "Color "+d.getActiveCard().color+
                " Rank: "+d.getActiveCard().rank);
        for(int i=0; i<players_amount; i++)
        {
            System.out.println("\nP"+(i+1)+" cards: ");
            for(int j=0; j<players[i].getPlayerCardsAmount(); j++)
            {
                System.out.println("Color "+players[i].getCard(i).color+
                    " Rank: "+players[i].getCard(j).rank+
                    " Punishment: "+players[i].getCard(j).punish+
                    " Card's reverse: "+players[i].getCard(j).pathAwers +
                    " Move possible: "+players[i].movePossible(i,d));
            }
        }
    }
}
